package com.micro.ai.models.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.micro.ai.models.entity.TrainingCheckpoint;

/**
 * 训练检查点服务接口
 * 
 * @author micro-ai
 * @since 0.0.1
 */
public interface TrainingCheckpointService extends IService<TrainingCheckpoint> {

    TrainingCheckpoint create(TrainingCheckpoint checkpoint);
    
    TrainingCheckpoint update(String id, TrainingCheckpoint checkpoint);
    
    void delete(String id);
    
    TrainingCheckpoint getById(String id);
    
    Page<TrainingCheckpoint> listByJobId(String jobId);
    
    TrainingCheckpoint getBest(String jobId);
}

